package refactexample.graphics;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

class ButtonListener implements ActionListener {

    ButtonPanel outer;

     ButtonListener(ButtonPanel outer) {
        super();
        this.outer = outer;
    }

    public void actionPerformed(ActionEvent e) {
        outer.controller.paintShape(e.getActionCommand());
    }
}
